// http://tantinh.net | @anhgt@tantinh.net
$(document).ready(function () {
    $(".item").hover(function () {
        change_hover($(this));
    }, function () { change_leave($(this)) });
    $('.news-photo,.photduct-photo')
  .error(function () {
      $(this).attr("src","styles/images/error-img.png");
  })

})
function change_hover(selector)
{
	$(selector).css({"background-image":"url(styles/images/menu-01-hover.png)","color":"#026cd0"});
	$(selector).find("div.camera-menu-item a").css({ "background-image": "url(styles/images/menu-02-hover.png)", "color": "#026cd0" });
	$(selector).find("div.camera-menu-item").css("background-image", "url(styles/images/menu-03-hover.png)");
	$(selector).find("ul").css("display", "block");
	}
function change_leave(selector)
{
    $(selector).css("background-image", "url(styles/images/menu-01.png)");
	$(selector).find("div.camera-menu-item a").css({ "background-image": "url(styles/images/menu-02.png)", "color": "#ffffff" });
	$(selector).find("div.camera-menu-item").css("background-image", "url(styles/images/menu-03.png)");
	$(selector).find("ul").css("display", "none");
}
